package com.photoeditor.demo.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * 防止点击TextView滑动  Viewpager不动
 */
public class InterceptTextView extends TextView {

    public InterceptTextView(Context context) {
        this(context, null);
    }

    public InterceptTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.setHorizontallyScrolling(false);
    }
}
